package eu.orangeflash.webapis.events
{
	import flash.events.Event;
	
	import eu.orangeflash.webapis.xmlrpc.*;

	public class XMLRPCEvent extends Event
	{
		public static const RESULT:String = "result";
		public static const FAULT:String  = "fault";
		public static const INVOKE:String = "invoke";
		
		private var serviceClient:IClient;
		private var method:IMethodCall;
		
		public function XMLRPCEvent(type:String, client:IClient, methodCall:IMethodCall)
		{
			super(type);
			serviceClient = client;
			method = methodCall;
		}
		
		public function get client():IClient
		{
			return serviceClient;
		}
		
		public function get methodCall():IMethodCall
		{
			return method;
		}
	}
}